<template>
  <div class="page-box">
    <el-card class="page-box-card">
      <el-form
        :model="queryParams"
        ref="queryForm"
        size="small"
        label-width="88px"
        inline
      >
        <el-form-item label="上报日期" prop="paramTime">
          <el-date-picker
            v-model="queryParams.paramTime"
            value-format="yyyy-MM-dd"
            type="daterange"
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
          >
          </el-date-picker>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" icon="el-icon-search" size="small" @click="getData" >
            搜索
          </el-button>
          <el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button>
        </el-form-item>
      </el-form>
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane label="脑卒中管理分析" name="first">
          <table border="1" cellspacing="0" style="width: 100%">
            <tr>
              <th colspan="15" rowspan="1">脑卒中管理分析</th>
            </tr>
            <tr>
              <th colspan="1" rowspan="1">指标类型</th>
              <th colspan="2" rowspan="1">管理指标</th>
              <th colspan="1" rowspan="1">本院数据</th>
              <th colspan="1" rowspan="1">去年同期</th>
              <th colspan="1" rowspan="1">前年同期</th>
              <th colspan="1" rowspan="1">同比变化</th>
              <th colspan="1" rowspan="1">上个月数据</th>
              <th colspan="1" rowspan="1">环比变化</th>
              <th colspan="1" rowspan="1">本市数据</th>
              <th colspan="1" rowspan="1">较全市</th>
              <th colspan="1" rowspan="1">本省数据</th>
              <th colspan="1" rowspan="1">较全省</th>
              <th colspan="1" rowspan="1">全国数据</th>
              <th colspan="1" rowspan="1">较全国</th>
            </tr>
            <tr>
              <td colspan="1" rowspan="7">卒中救治</td>
              <td colspan="2" rowspan="1">急性脑梗死静脉溶栓率</td>
              <td colspan="1" rowspan="1">{{ getDetail(0).bysj || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(0).quntq || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(0).qntq || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(0).tbbh	 || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(0).sysj || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(0).hbbh || '-' }}%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">DNT中位数</td>
              <td colspan="1" rowspan="1">{{ getDetail(1).bysj  || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(1).quntq || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(1).qntq  || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(1).tbbh || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(1).sysj  || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(1).hbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">DNT≤60分钟达标率</td>
              <td colspan="1" rowspan="1">{{ getDetail(2).bysj  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(2).quntq || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(2).qntq  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(2).tbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(2).sysj  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(2).hbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">ONT</td>
              <td colspan="1" rowspan="1">{{ getDetail(3).bysj  || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(3).quntq || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(3).qntq  || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(3).tbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(3).sysj  || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(3).hbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">DPT中位数</td>
              <td colspan="1" rowspan="1">{{ getDetail(4).bysj  || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(4).quntq || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(4).qntq  || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(4).tbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(4).sysj  || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(4).hbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">DNT≤90分钟达标率</td>
              <td colspan="1" rowspan="1">{{ getDetail(5).bysj  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(5).quntq || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(5).qntq  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(5).tbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(5).sysj  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(5).hbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">OPT</td>
              <td colspan="1" rowspan="1">{{ getDetail(6).bysj  || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(6).quntq || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(6).qntq  || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(6).tbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(6).sysj  || '-' }}</td>
              <td colspan="1" rowspan="1">{{ getDetail(6).hbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="1" rowspan="3">卒中预后</td>
              <td colspan="2" rowspan="1">
                静脉溶栓及血管内治疗患者住院死亡率
              </td>
              <td colspan="1" rowspan="1">{{ getDetail(7).bysj  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(7).quntq || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(7).qntq  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(7).tbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(7).sysj  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(7).hbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">脑出血手术患者住院死亡率</td>
              <td colspan="1" rowspan="1">{{ getDetail(8).bysj  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(8).quntq || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(8).qntq  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(8).tbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(8).sysj  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(8).hbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">动脉瘤手术患者住院死亡率</td>
              <td colspan="1" rowspan="1">{{ getDetail(9).bysj  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(9).quntq || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(9).qntq  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(9).tbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(9).sysj  || '-' }}%</td>
              <td colspan="1" rowspan="1">{{ getDetail(9).hbbh  || '-' }}%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="15" rowspan="1">
                急性脑梗死静脉溶栓率=该月静脉溶栓例数/首诊到发病14天内住院脑梗死患者例数
              </td>
            </tr>
            <tr>
              <td colspan="15" rowspan="1">
                静脉溶栓及血管内治疗患者住院死亡率=接受静脉溶栓或(和)血管内治疗后死亡患者例数/接受静脉溶栓或(和)血管内治疗的总例数
              </td>
            </tr>
            <tr>
              <td colspan="15" rowspan="1">
                脑出血手术患者住院死亡率=脑出血手术患者死亡例数/脑出血手术总例数
              </td>
            </tr>
            <tr>
              <td colspan="15" rowspan="1">
                动脉瘤手术思者住院死亡率=接受动脉瘤手术后死亡例数/接受动脉瘤手术总例数
              </td>
            </tr>
            <tr>
              <td colspan="15" rowspan="1">
                脑梗死患者出院3月后残疾率=该半年内脑梗死出院患者3月后mRS≥3分者例数/该半年内脑梗死出院且参加随访患者例数
              </td>
            </tr>
            <tr>
              <td colspan="15" rowspan="1">
                脑梗死患者出院3月后卒中复发率=该半年内脑梗死出院患者3月内脑梗死复发例数/该半年内脑梗死出院且参加随访患者例数
              </td>
            </tr>
          </table>
        </el-tab-pane>
        <el-tab-pane label="脑卒中技术指标分析" name="second">
          <table border="1" cellspacing="0" style="width: 100%">
            <tr>
              <th colspan="7" rowspan="1">脑卒中技术指标分析</th>
            </tr>
            <tr>
              <th colspan="1" rowspan="1">病种项目</th>
              <th colspan="2" rowspan="1">管理指标</th>
              <th colspan="1" rowspan="1">本院数据</th>
              <th colspan="1" rowspan="1">本市数据</th>
              <th colspan="1" rowspan="1">本省数据</th>
              <th colspan="1" rowspan="1">全国数据</th>
            </tr>
            <tr>
              <td colspan="1" rowspan="14">脑梗死静脉溶栓及血管内治疗</td>
              <td colspan="2" rowspan="1">急性脑梗死静脉溶栓率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">DNT中位数</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">DNT≤60分钟达标率</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">DPT中位数</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">DNT≤90分钟达标率</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
              <td colspan="1" rowspan="1">%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">ONT</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">OPT</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-</td>
              <td colspan="1" rowspan="1">-</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">非心源性脑梗死的抗血小板治疗比率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">吞咽困难筛查率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">康复治疗率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">
                静脉溶栓及血管内治疗患者住院死亡率
              </td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">静脉溶栓并发症发生率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">血管内治疗再通率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">血管内治疗并发症发生率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="1" rowspan="4">脑出血围手术期</td>
              <td colspan="2" rowspan="1">降压治疗比率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">康复治疗率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">脑出血手术思者住院死亡率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">脑出血手术并发症发生率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="1" rowspan="8">
                蛛网膜下腔出血及颅内动脉瘤围手术期
              </td>
              <td colspan="2" rowspan="1">
                破裂动脉癌围手术期应用尼莫地平预防血管痉挛治疗比率
              </td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">破裂动脉瘤手术康复治疗率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">所有动脉瘤手术并发症发生率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">动脉瘤介入栓塞术并发症发生率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">动脉瘤开颅夹闭术并发症发生率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">所有动脉瘤手术患者住院死亡率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">动脉瘤介入栓塞术患者住院死亡率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">动脉瘤开颅夹闭术患者住院死亡率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="1" rowspan="4">CEA和CAS围手术期</td>
              <td colspan="2" rowspan="1">CEA手术并发症发生率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">CAS手术并发症发生率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">CEA术后抗血小板治疗比率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="2" rowspan="1">CAS术后抗血小板治疗比率</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
              <td colspan="1" rowspan="1">-%</td>
            </tr>
            <tr>
              <td colspan="15" rowspan="1">
                DNT、DPT、ONT和OPT以中位数表示，其他数据以平均值表示
              </td>
            </tr>
            <tr>
              <td colspan="15" rowspan="1">
                急性脑梗死静脉溶栓率=该月静脉溶栓例数/首诊到发病14天内住院脑梗死患者例数
              </td>
            </tr>
            <tr>
              <td colspan="15" rowspan="1">
                静脉溶栓及血管内治疗患者住院死亡率=(接受静脉溶栓或(和)血管内治疗后死亡患者例数)/(接受静脉溶栓或(和)血管内治疗的总例数)
              </td>
            </tr>
            <tr>
              <td colspan="15" rowspan="1">
                脑出血手术患者住院死亡率=脑出血手术患者死亡例数/脑出血手术总例数
              </td>
            </tr>
            <tr>
              <td colspan="15" rowspan="1">
                动脉瘤手术患者住院死亡率=接受动脉瘤手术后死亡例数/接受动脉瘤手术总例数
              </td>
            </tr>
          </table>
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>
<script>
import { queryQsfx } from "@/api/quality/chart";
export default {
  data() {
    return {
      activeName: "first",
      queryParams: {
        paramTime: [],
      },
      radio2: "周",
      radio3: "总览",
      dataList: [],
    };
  },
  created() {
    this.getData();
  },
  methods: {
    getDetail(type) {
      if(!this.dataList.length) {
        return {
          bysj: null,
          hbbh: null,
          qntq: null,
          quntq: null,
          sysj: null,
          tbbh: null,
        }
      }
      for(let i = 0; i < this.dataList.length; i++) {
        const item = this.dataList[i]
        if(item.type == type) {
          return item
        }
      }
    },
    resetQuery() {
      this.queryParams.paramTime = [];
      this.getData();
    },
    // 切换tab
    handleClick(value) {
      console.log("value: ", value);
    },
    getData() {
      const paramTime = this.queryParams.paramTime;
      const param = {
        endTime: paramTime && paramTime.length ? paramTime[0] : "",
        startTime: paramTime && paramTime.length ? paramTime[0] : "",
      };
      queryQsfx(param).then((res) => {
        console.log("res: ", res);
        if(res.data && res.data.childList.length) {
          this.dataList = [...res.data.childList]
        } else {
          this.dataList = []
        }
      });
    },
  },
};
</script>
<style lang="scss">
th {
  color: #666;
  font-size: 16px;
  height: 48px;
}
td {
  height: 40px;
  text-align: center;
}
</style>
